﻿using System;
using System.Collections;

namespace SortedListText
{
    class Program
    {
        static void Main(string[] args)
        {
            SortedList sortedList = new SortedList();
            sortedList.Add(0,"肖申克的救赎");
            sortedList.Add(1, "寂静岭");
            sortedList.Add(2, "美猴王");

            Console.WriteLine("编号:{0}\n片名:{1}", 0, sortedList[0]);
            Console.WriteLine("编号:{0}\n片名:{1}",1,sortedList[1]);
            Console.WriteLine("编号:{0}\n片名:{1}", 2, sortedList[2]);

        }
    }
}
